package main

type Store interface {
    Write([]Row) error
    GetTableDef() TableDefine
    GetPartition() Partition
    LastActiveTime() (int64, int64, int64) //open read write
    Query(string) (string, error)
    QueryKeys(QueryCondition)( []string, error)
    QueryValues(QueryCondition) (map[string]string, error)
    Open() error
    Close() error
    IsActive() bool
}

type QueryCondition struct {
    keyPrefix        string
    index            map[string]string
    indexPrefixQuery bool
}
